package com.loong.ems.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author 龙勇-229970722
 * @date 2025-01-03 9:02
 * @description: 部门实体类
 */

@Data
@NoArgsConstructor
@TableName(value = "sys_dept")
public class SysDept {

    @TableId(type = IdType.AUTO) // MyBatis-Plus 的主键注解
    private Long id; // 部门Id

    @Schema(description = "部门名称") // Swagger 的注解
    private String name; // 部门名称

    @Schema(description = "负责人Id")
    private Long managerUserId; // 负责人Id

    @Schema(description = "上级部门Id")
    private Long parentId; // 上级部门Id

    @Schema(description = "排序码")
    private Integer sortCode; // 排序码

    @Schema(description = "状态(0-正常 1-禁用)")
    private Integer status; // 状态(0-正常 1-禁用)
}